package oakclub.entity;

public class CityEntity extends BaseEntity
{
    private int id;
    private String name;
    private double latitude;
    private double longitude;
    private CountryEntity country;

    public CityEntity()
    {

    }

    public CityEntity(String name, String countryName)
    {
        this.name = name;
        this.country = new CountryEntity(countryName);
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public double getLatitude()
    {
        return latitude;
    }

    public void setLatitude(double latitude)
    {
        this.latitude = latitude;
    }

    public double getLongitude()
    {
        return longitude;
    }

    public void setLongitude(double longitude)
    {
        this.longitude = longitude;
    }

    public CountryEntity getCountry()
    {
        return country;
    }

    public void setCountry(CountryEntity country)
    {
        this.country = country;
    }
}
